package org.darkforest.ucenter.service.impl;

import org.darkforest.dao.mapper.ConsultMapper;
import org.darkforest.model.Consult;
import org.darkforest.model.ConsultSearchBean;
import org.darkforest.model.ConsultVo;
import org.darkforest.ucenter.service.ConsultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * 项目名称         :bwmall-ucenter
 * 文件名           :ConsultServiceImpl.java
 * 开发公司及作者    :陈超
 * 版本号及开发日期  :Rev. 1.00 (2015年2月22日)
 */
@Service
public class ConsultServiceImpl implements ConsultService {

	@Autowired
	private ConsultMapper consultMapper;
	
	
	@Override
	public void getConsultList(ConsultSearchBean page) {
		page.setResultList(consultMapper.selectByMember(page));
	}

	@Override
	public void insert(Consult record) {
		consultMapper.insert(record);
	}

	@Override
	public List<ConsultVo> selectByMember(ConsultSearchBean page) {
		return consultMapper.selectByMember(page);
	}

	@Override
	public List<ConsultVo> selectConsultList(ConsultSearchBean page) {
		return consultMapper.selectConsultList(page);
	}

}
